package com.tsingteng.cosfun.bean;

/**
 * 描述: 数据基类,根据返回的状态吗进行统一的处理
 * 创建人: 肖利
 * 时间: 2018/7/30
 * qq: (872179966)
 */

public class BaseDataBean<T> {



    /**
     * {
     "status":200,
     "msg":"OK",
     "data":{
     "profile_id":10011,
     "is_new_user":1,
     "mobile":"15110057171",
     "token":"795988bf00acb7db589a100cdf2dd526"
     }
     }
     */
    /**
     * 服务器返回的错误码
     */
    private int status;
    private String msg;
    /**
     * 服务器返回的数据
     */
    public T data;


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
